//品牌服务层

app.service('brandService',function ($http) {

    //读取列表数据绑定到表单中
    this.findAll=function (page,size,SeachEntity) {
        return $http.post("../brand/search.do?page="+page+'&rows='+size,SeachEntity);
    }
    this.findOne=function (id) {
        return $http.get('../brand/findOne.do?id='+id);
    }
    this.save=function (methodName,entity1) {
        return  $http.post('../brand/'+methodName+'.do',entity1)
    }
    this.dele=function (selectIds) {
        return  $http.get('../brand/delete.do?ids='+selectIds)
    }
    //下拉列表数据
    this.selectOptionList=function(){
        return $http.get('../brand/selectOptionList.do');
    }

})